package com.scanner.bean;

/**
 * eventbus的基础类
 * Created by Administrator on 2017/11/10.
 */

public class Event<T> {
    private int type;//区分事件类型
    private T data;

    public Event(int type) {
        this.type = type;
    }

    public Event(int type, T data) {
        this.type = type;
        this.data = data;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
